import request from '@/utils/request';

// 获得用户组分页
export function getUserGroupPage(params) {
  return request({
    url: '/bpm/user-group/page',
    method: 'get',
    params,
  });
}

// 创建用户组
export function createUserGroup(data) {
  return request({
    url: '/bpm/user-group/create',
    method: 'post',
    data,
  });
}

// 删除用户组
export function deleteUserGroup(params) {
  return request({
    url: '/bpm/user-group/delete',
    method: 'delete',
    params,
  });
}

// 更新用户组
export function updateUserGroup(data) {
  return request({
    url: '/bpm/user-group/update',
    method: 'put',
    data,
  });
}

// 用户分组下拉列表
export function getUserGroupList(params) {
  return request({
    url: '/bpm/user-group/drop-down-list',
    method: 'get',
    params,
  });
}
